<script setup>

</script>

<template>
<div>
  <h2>商品信息:</h2>
  <!-- 路径参数通过$route.params获取 -->
  <p>商品id: {{$route.params.id}}</p>
</div>
</template>

<style scoped>

</style>